math/big.Int.Sub (method)
47 uses
math/big (current package)
int.go#L162: func (z *Int) Sub(x, y *Int) *Int {
int.go#L263: z.Mul(z, t.Sub(&N, &i))
int.go#L316: z.Sub(z, intOne)
int.go#L334: z.Sub(z, y0)
int.go#L365: m.Sub(m, y0)
int.go#L367: z.Sub(z, intOne)
int.go#L743: Ub.Sub(Ub, q)
int.go#L854: y.Sub(A, y)
int.go#L1011: beta.Sub(beta, intOne)
int.go#L1024: s.Sub(p, intOne)
natmul.go#L208: tx.Sub(x0, x1)
natmul.go#L209: ty.Sub(y1, y0)
natmul.go#L228: tx = new(Int).Sub(x1, x0)
natmul.go#L229: ty = new(Int).Sub(y0, y1)
natmul.go#L295: tx.Sub(x0, x1)
natmul.go#L313: tx = new(Int).Sub(x0, x1)
rat.go#L518: z.a.Sub(&a1, &a2)
crypto/dsa
dsa.go#L127: rem.Sub(rem, one)
dsa.go#L128: p.Sub(p, rem)
dsa.go#L147: pm1 := new(big.Int).Sub(p, one)
dsa.go#L199: pMinus2 := new(big.Int).Sub(P, two)
crypto/elliptic
params.go#L43: x3.Sub(x3, threeX)
params.go#L151: h := new(big.Int).Sub(u2, u1)
params.go#L166: r := new(big.Int).Sub(s2, s1)
params.go#L179: x3.Sub(x3, j)
params.go#L180: x3.Sub(x3, v)
params.go#L181: x3.Sub(x3, v)
params.go#L185: v.Sub(v, x3)
params.go#L189: y3.Sub(y3, s1)
params.go#L194: z3.Sub(z3, z1z1)
params.go#L195: z3.Sub(z3, z2z2)
params.go#L228: alpha := new(big.Int).Sub(x, delta)
params.go#L243: x3.Sub(x3, beta8)
params.go#L251: z3.Sub(z3, gamma)
params.go#L255: z3.Sub(z3, delta)
params.go#L262: beta.Sub(beta, x3)
params.go#L272: y3.Sub(y3, gamma)
crypto/rand
util.go#L72: n.Sub(max, n.SetUint64(1))
crypto/rsa
rsa.go#L463: pminus1.Sub(prime, bigOne)
rsa.go#L592: precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne)
rsa.go#L595: precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne)
rsa.go#L609: values.Exp = new(big.Int).Sub(prime, bigOne)
crypto/x509
oid.go#L325: bigVal = bigVal.Sub(bigVal, big.NewInt(80))
encoding/asn1
marshal.go#L206: nMinus1.Sub(nMinus1, bigOne)
go/constant
value.go#L1131: return makeInt(newInt().Sub(big.NewInt(a), big.NewInt(b)))
value.go#L1166: c.Sub(a, b)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L79: nMinus1.Sub(nMinus1, bigOne)